package cn.bdqn.applysystem.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import cn.bdqn.applysystem.dao.SubjectMapper;
import cn.bdqn.applysystem.entity.Subject;
import cn.bdqn.applysystem.service.SubjectService;

@Service("subjectServiceImpl")
public class SubjectServiceImpl implements SubjectService {

	@Autowired
	@Qualifier("subjectMapper")
	SubjectMapper subjectMapper;
	
	/**
	 * 获取全部课程
	 * */
	@Override
	@Transactional(isolation=Isolation.READ_COMMITTED,propagation=Propagation.SUPPORTS)
	public List<Subject> getSubjectList() {
		List<Subject> subjectList = subjectMapper.SelectSubjectListAll();
		return subjectList;
	}

}
